from lextract import lextract



# full conversion of slk-eng-Freelang-orig.wb to WholeOneToOne format
# lex = lextract()
# lex.WBparsefile("data/slk-eng-Freelang/slk-eng-Freelang-orig.wb","slk-eng-Freelang-orig.out","slk-000",["eng-000"],multipleTarget=True)

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1207/test1-1207.txt")
#lex.dict.write("/tmp/poi")
lex.dict.locateInFile("data/sample10/1207/source5-1207.txt")


# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/0805/test1-0805.txt")
lex.dict.locateInFile("data/sample10/0805/source5-0805.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1649/test1-1649.txt")
lex.dict.locateInFile("data/sample10/1649/source5-1649.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1656/test1-1656.txt")
lex.dict.locateInFile("data/sample10/1656/source5-1656.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1682/test1-1682.txt")
lex.dict.locateInFile("data/sample10/1682/source5-1682.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1684/test1-1684.txt")
lex.dict.locateInFile("data/sample10/1684/source5-1684.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1701/test1-1701.txt")
lex.dict.locateInFile("data/sample10/1701/source5-1701.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1797/test1-1797.txt")
lex.dict.locateInFile("data/sample10/1797/source5-1797.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/1938/test1-1938.txt")
lex.dict.locateInFile("data/sample10/1938/source5-1938.txt")

# parse and locate 
lex = lextract()
lex.dict.parse("data/sample10/2122/test1-2122.txt")
lex.dict.locateInFile("data/sample10/2122/source5-2122.txt")

# parse and output 
# lex = lextract()
# lex.dict.parse("data/slk-eng-Freelang/slk-eng-Freelang-final.txt")
# lex.dict.write("out3")
